<template>
    <el-main>
        <el-main class="ep-body">
	    <epl-top-bar :datas="{formData:form,tableData1:tableData1,tableData2:tableData2,panel:panel}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_INJURY_QUERY">
            </epl-top-bar>

	    <epl-userMessage dataType="person" idCount="4" >
            </epl-userMessage>
            
            
            <el-card class="ep-card">
                <ep-title>工伤人员基本信息</ep-title>
                <el-form :model="form" :rules="rules" ref="form">
                <el-row :gutter="10">
                        <ep-input colspan="8" label="社会保障号码" name="aac002" :property="form.aac002"
                                placeholder="" p="H" :datas="{formData:form}" isChange></ep-input>
                        <ep-input colspan="8" label="姓名" name="aac003" :property="form.aac003"
                                placeholder="" p="H" :datas="{formData:form}"></ep-input>
                        <ep-select colspan="8" label="性别" name="aac004" :property="form.aac004"
                                placeholder="" p="H" :datas="{formData:form}" codetype="AAC004"></ep-select>
                        <ep-date colspan="8" label="出生日期" name="aac006" :property="form.aac006"
                                placeholder="" p="H" :datas="{formData:form}"></ep-date>
                </el-row>
                
                <el-row :gutter="10">
                        <ep-select colspan="8" label="离退休状态" name="aac084" :property="form.aac084"
                                placeholder="" p="D" :datas="{formData:form}" codetype="AAC084"></ep-select>
                        <ep-select colspan="8" label="行政区划" name="aab301" :property="form.aab301"
                                placeholder="" p="D" :datas="{formData:form}" codetype="AAB301"></ep-select>
                        <ep-input colspan="8" label="联系人" name="aac003s" :property="form.aac003s"
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                </el-row>

                <el-row :gutter="10">
                        <ep-input colspan="8" label="联系电话" name="aae005" :property="form.aae005"
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                        <ep-input colspan="8" label="联系手机" name="aac067" :property="form.aac067"
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                </el-row>

                
                <ep-title>请输入认定鉴定信息</ep-title>
                <el-row :gutter="10">
                        <ep-input colspan="8" label="工伤认定书编号" name="alc011" :property="form.alc011"
                                placeholder="请输入工伤认定书编号" p="R" :datas="{formData:form}" isChange></ep-input>
                        <ep-input colspan="8" label="单位管理码" name="aab999" :property="form.aab999"
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                        <ep-input colspan="8" label="单位名称"  name="aab069" :property="form.aab069"
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                </el-row>

                <el-row :gutter="10">
                        <ep-date colspan="8" label="工伤发生时间" name="alc020" :property="form.alc020" 
                                placeholder="" p="D" :datas="{formData:form}" type="date" 
                                format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                        <ep-date colspan="8" label="工伤认定日期"  name="alc031" :property="form.alc031"
                                placeholder="" p="D" :datas="{formData:form}" type="date" 
                                format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                        <ep-select colspan="8" label="工伤认定结论" name="ala015" :property="form.ala015"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALA015"></ep-select>
                </el-row>

                <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位1" name="alc042" :property="form.alc042"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALC042" ></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALC043" ></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALC044" ></ep-select>
                </el-row>

                <el-row :gutter="10">
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALA017"></ep-select>
                        <ep-date colspan="8" label="劳动能力鉴定日期" name="alc034" :property="form.alc034"
                                placeholder="" p="D" :datas="{formData:form}" type="date"
                                format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date>
                        <ep-select colspan="8" label="伤残等级" name="ala040" :property="form.ala040"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALA040"></ep-select>
                </el-row> 

                <el-row :gutter="10">
                        <ep-select colspan="8" label="护理依赖等级" name="alc060" :property="form.alc060"
                                placeholder="" p="D" :datas="{formData:form}" codetype="ALC060"></ep-select>
                        <ep-date colspan="8" label="因工死亡日期"  name="alc040" :property="form.alc040"
                                placeholder="" p="D" :datas="{formData:form}" type="date" 
                                format="yyyy-MM-dd" value-format="yyyyMMdd"></ep-date> 
                        <ep-select colspan="8" label="老工伤标志" name="bae476" :property="form.bae476"
                                placeholder="" p="D" :datas="{formData:form}" codetype="BAE476"></ep-select>
                </el-row>

                <el-row :gutter="10">
                        <ep-input colspan="8" label="单位编号" name="aab001" :property="form.aab001"
                                placeholder="请输入单位编号" p="H" :datas="{formData:form}"></ep-input>
                        <ep-select colspan="8" label="工伤待遇类别" name="ala041" :property="form.ala041"
                                placeholder="" p="H" :datas="{formData:form}" codetype="ALA041"></ep-select>
                </el-row>


                <ep-title>请输入伤残待遇信息</ep-title>
                <el-row :gutter="10">
                        <ep-input colspan="8" label="工伤缴费基数" name="elc001" :property="form.elc001" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                        <ep-input colspan="8" label="伤残补助金" name="eac046" :property="form.eac046" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                        <ep-input colspan="8" label="交通事故理赔额" name="blc218" :property="form.blc218" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                </el-row>

                <el-row :gutter="10">
                        <ep-input colspan="8" label="单位垫付额" name="blc218" :property="form.blc218" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                        <ep-input colspan="8" label="扣发总月数" name="bac062" :property="form.bac062" 
                                placeholder="" p="D" :datas="{formData:form}"></ep-input>
                        <ep-input colspan="8" label="扣发总金额" name="bac046" :property="form.bac046" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                </el-row>

                <el-row :gutter="10">
                        <ep-input colspan="8" label="待遇享受开始年月" name="eae007" :property="form.eae007" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>
                        <ep-input colspan="8" label="待遇享受终止年月" name="eae008" :property="form.eae008" 
                                placeholder="" p="D" :datas="{formData:form}">
                        </ep-input>

                </el-row>

                            
                <ep-title>请输入待遇发放信息</ep-title>
                <el-row :gutter="10">
                        <ep-select colspan="8" label="发放方式" name="aae145" :property="form.aae145" 
                                placeholder="请选择发放方式" p="R" :datas="{formData: form}" codetype="AAE145">
                        </ep-select>
                        <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" 
                                placeholder="请选择发放银行" p="R" :datas="{formData: form}" codetype="AAZ065">
                        </ep-select>
                        <ep-input  colspan="8" label="银行账号" name="aae010" :property="form.aae010" 
                                placeholder="请输入银行账号" p="R" :datas="{formData: form}" >
                        </ep-input>
                </el-row>

                <el-row :gutter="10">
                        <ep-input  colspan="8" label="银行开户名" name="aae009" :property="form.aae009" 
                                placeholder="请输入银行开户名" p="R" :datas="{formData: form}" >
                        </ep-input>
                        <ep-select colspan="8" label="开户行行号" name="bae040" :property="form.bae040" 
                                placeholder="请选择开户行行号" p="R" :datas="{formData: form}" codetype="BAE040" >
                        </ep-select>
                        <ep-select colspan="8" label="开户银行名称" name="bac049" :property="form.bac049" 
                                placeholder="请选择开户银行名称" p="R" :datas="{formData: form}">
                </ep-select>
                </el-row>

                </el-form>
        
                

                <el-tabs v-model="activeName2"  type="card">
                        <el-tab-pane label="待遇项目信息" name="1">
                                <ep-table :data="tableData1" :pager="50">
                                <ep-table-column editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                                <ep-table-column editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                                <ep-table-column editor="text" name="aae041" header="待遇开始年月"></ep-table-column>
                                <ep-table-column editor="text" name="aae042" header="待遇结束年月"></ep-table-column>
                                <ep-table-column editor="text" name="aae019" header="待遇金额"></ep-table-column>
                                <ep-table-column editor="text" name="bac062" header="补扣发月数"></ep-table-column>
                                <ep-table-column editor="text" name="bac063" header="补扣发金额"></ep-table-column>
                                </ep-table>
                        </el-tab-pane>
                        <el-tab-pane label="一次性待遇" name="2">
                                <ep-table :data="tableData2" :pager="50">
                                <ep-table-column editor="text" name="aic160" header="结算期"></ep-table-column>
                                <ep-table-column editor="text" name="aaa036" header="待遇类别"></ep-table-column>
                                <ep-table-column editor="text" name="aae019" header="工伤待遇金额"></ep-table-column>
                                </ep-table>
                        </el-tab-pane>

                        <el-row type="flex" justify="center">
                                <ep-button id="cal" api="doQuery" type="primary" top="20" bottom="20" 
                                        :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,panel:panel}" name="计算"></ep-button>
                                <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save"  @formValidate="formValidate" :validate="['form']" 
                                        :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,panel:panel}" name="保存"></ep-saveButton>
                        </el-row>

                </el-tabs>
                </el-card>

        </el-main>
    </el-main>
</template>

<!--activeNames: ['1','2','3','4'],-->
<!--tableNames: '11',-->


<script src="../js/DisabilityOnceBenefitJS.js"></script>
